package rankdto

import (
	"github.com/gogf/gf/v2/util/gconv"
	"xr-game-server/entity"
)

type RankInfo struct {
	Nick     string `json:"nick"`
	AvatarId uint32 `json:"avatarId"`
	ID       uint64 `json:"id"`
}

func NewRankInfo(roleData *entity.PlayerRole) *RankInfo {
	ret := &RankInfo{}
	gconv.Struct(roleData, ret)
	return ret
}
